<script>
	export default {
		globalData:{
			baseUrl:'https://api.cqbolian.com/',
		},
		onLaunch: function(e) {
			console.log('App Launch')
			// #ifdef H5
			if(e.query.token){
				uni.setStorageSync('token',e.query.token);
			}
			let redict_url=uni.getStorageSync('redict_url');
			if(redict_url){
				uni.setStorageSync('redict_url','');
				uni.showLoading({
					title:'正在跳转页面.. ',
				});
				setTimeout(res=>{
					uni.redirectTo({ 
						url:redict_url		
					});
					uni.hideLoading();
				},1500);
			}
			// #endif
		},
		onShow: function() {

		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import './common/fui-app.css';
	@import './components/firstui/fui-theme/fui-theme.css';
</style>